﻿using AppManager.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppManager.Model
{
    /// <summary>
    /// signalr 已連接設備記錄
    /// </summary>
    public class Connect : BaseModel
    {
        /// <summary>
        /// signalr連接Id
        /// </summary>
        [MaxLength(50)]
        [Index(IsUnique = true)]
        public string ConnectionId { get; set; }
        /// <summary>
        /// 機器碼
        /// </summary>
        [MaxLength(500)]
        public string DeviceStr { get; set; }
        /// <summary>
        /// 是否在線
        /// </summary>
        public bool IsConnected { get; set; }
        /// <summary>
        /// 是否是管理員
        /// </summary>
        public bool IsAdmin { get; set; }
    }
}
